package ooExercise.ooday04;

public class Chick extends Animal {
    public Chick(String name, int age, String color,String food) {
        super(name, age, color,food);
    }

    void eat() {
        System.out.println("一只"+color+"颜色的,今年"+age+"岁了,名字叫"+name+"的母鸡,正在吃"+food);
    }
    void lyeggs(){
        System.out.println("一只名叫"+name+"的母鸡，它的颜色是"+color+"色的，今年"+age+"岁了，它现在正在阿芬的鸡舍下蛋");
    }
}
